markforster.net Improvement Userscript

Author: Andreas Hofmann | Created: 2010-02-19 23:58 | Last Activity: 2019-01-22 6:50

Original Post

2010-02-19 23:58
Hello everyone,

I've published several userscripts in the past to improve this website and forum. They're now scattered across three threads in this forum and some variations exist, making it hard to find out which scripts exist, which can be combined and which shouldn't be combined.

Thus I merged all my userscripts into one. One script to rule them all. ;-)

You'll only need this single link, the newest version of the script and instructions will always be available here:

http://andreashofmann.net/userscripts/markforster.net/

Before you install it, uninstall any of my userscripts you may have installed. You won't need anything beside this script.

It includes:

- Highlight New Topics and Posts
- Highlight Mark Forster's Posts
- Go to Last Page When Opening Topics
- Scroll to Bottom When Opening Topics
- Open Topics in New Tabs/Windows
- Block Esc Key From Forwarding to Login Screen

In addition, there now is an options menu, which will be added to the bottom of the left side bar and allows you to enable/disable all features in realtime.

Reply by Mike

2010-02-20 1:42
Thanks Andrea. Brilliant as usual.

Reply by MartyH

2010-02-20 3:26
Does it scroll to the bottom when opening topics or does it scroll to the first unread post?

Whichever script I am using scrolls to the last unread post. It highlights unread in yellow on and Mark Forster i n green. That's the way I like it best. Therefore I am thinking that if it isn't broken I shouldn't fix it.

Reply by Andreas Hofmann

2010-02-20 8:26
Mike:

Thanks!

MartyH:

Where it scrolls to depends.

If you don't activate one of the "Highlight ..." scripts and don't activate "Jump to Bottom", it will always stay at the top.

If you activate neither one of the "Highlight ..." scripts nor "Jump to Bottom", it will always scroll to the bottom.

If you do activate one of the "Highlight ..." scripts and don't activate "Jump to Bottom", it will scroll to the first new post if there are new posts and stay at the top if there aren't.

If you activate both one of the "Highlight ..." scripts and "Jump to Bottom", it will scroll to the first new post if there are new posts and scroll to the bottom if there aren't.

In that aspect, the new script and my old scripts (installed together or separately respectively) behave exactly the same.

There's one aspect the new script behaves differently: The old standalone higlight script only highlighted Mark's new posts in green. The new script highlights all of Mark's posts, using the same old green for new posts and a much lighter shade of green for old posts.

Oh, and the reason I say "one of" the highlight scripts is that it will scroll to the newest post even if you only highlight Mark's posts. I'll fix that behavior in the next version.

Reply by Andreas Hofmann

2010-02-20 8:28
<
If you activate neither one of the "Highlight ..." scripts nor "Jump to Bottom", it will always scroll to the bottom.>>

Screwed that one up, it's "install neither -> alway at top" and "don't install highlight, install jump to bottom -> always to bottom", of course.

Reply by Annette

2010-02-20 11:06
That's brilliant Andreas, thank you! I've never used GreaseMonkey scripts before, so this is a revelation. I'm only sorry I can't use it at work, where I have to use Internet Explorer.

Reply by MartyH

2010-02-20 14:24
Andreas -

Thanks for the explanation of how they work together. Sounds perfect. I'll get it installed right away.

Reply by ds

2010-02-20 15:07
Andreas: Likewise, first time using Grease Monkey scripts. Don't know how it works--it might be magic... But what an improvement for reading this site! This sort of behaviour should be baked right in.

Reply by sabre23t

2010-02-21 8:40
<< This sort of behaviour should be baked right in. >>

I believe Mark Forster can incorporate AndreasH javascript into his site webpage if he wants. Anyway, I'm another new happy user of AndreasH's script. ;-)

Reply by Nicole

2010-02-21 10:35
Installed the script yesterday, and looking at how it works: WOW! Andreas, you're the best!

Reply by Joseph

2010-02-21 18:04
Feeling a bit dense. . . where is the "bottom of the left side bar" so that I may access the options menu? I'm using firefox. . . do i not have the right version?

Reply by ds

2010-02-21 18:14
I was dense, too--looking for something on the bottom left of the web browser. Once you've installed the scripts, the options box appears embedded on the bottom of left of THIS website! Like magic.

Reply by Andreas Hofmann

2010-02-21 18:15
Joseph:

It means the last box in the left side bar. There are the boxes "Search", "Newsletter", "Most recent postings", "To think about" and "Login", followed by the twitter updates. The box "Userscript Options" should be below that.

Reply by MartyH

2010-02-21 18:20
It is the left bar on the page itself. (I scratched my head like you are doing - don't feel bad.)

Reply by Andreas Hofmann

2010-02-21 18:23
Problem is, if the middle pane is longer than the sidebar, the options are not at the bottom of the whole page. They're technically at the bottom of the sidebar, since the sidebar is only as high as the combined height of the boxes it contains, but visually you may think of the sidebar continuing empty to the bottom of the page, in which case "at the bottom of the left sidebar" is confusing.

Perhaps I should've just said "in the left sidebar".

Reply by Andreas Hofmann

2010-02-21 18:24
Or "in the left sidebar of the website". I forget there are sidebars in browsers. ^_^

Reply by Andreas Hofmann

2010-02-21 19:07
I changed the text and added a more illustrating screenshot at http://andreashofmann.net/userscripts/markforster.net/#options

Reply by Joseph

2010-02-22 0:56
Ha! Thanks folks, it was there in plain sight. Andreas, you were right. . . i was thinking "sidebar" integrated into a browser. The whole time I was thinking "Firefox doesn't have a left hand sidebar!"

Great script, thanks!

Reply by moises

2010-02-22 0:58
Yes, this is awesome. And yes, I also did not see the options on the left sidebar until this thread explained it to me.

Now that I am using this, I feel that it would be more efficient for me if the New Tab/Window option kept the focus on the main forum page, rather than taking me to the newly opened topic here's why.

I go to the forum page. I see the top 4 topics are yellow. What I usually want to do is click all 4 highlighted topics. Since I have the attention span of a fruit fly, if I am immediately taken to the opened topic, I then forget which ones I have already opened and which ones remain to be opened. I would prefer to remain on the forum page and just click all the highlighted topics that interest me. I can then close the forum page and start to read the opened topics.

But all this is petty stuff. The way things are is far superior to the way things were, where I was constantly trying to remember what I had already read and what was new.

The generosity of Mark and Andreas continues to inspire me. Thanks.

Reply by MartyH

2010-02-22 4:48
I middle click which opens each in a new tab while leaving me on the main page.

Reply by Andreas Hofmann

2010-02-22 5:47
<>

That's something I can't influence, I think. I either let the links open in the same tab/window, or give them target="blank" to open in a new tab/window. HTML doesn't support a "in background" target. Maybe I can find something in JavaScript to achieve that effect.

What you need to do to open them in the background varies depending on which browser you use. In Chrome, I hold Ctrl down while clicking the links. In Opera, it's Ctrl+Shift. In Firefox, Ctrl alone does the job (I don't now if this is influenced by the Tab Mix Plus extension I have installed).

Reply by Andreas Hofmann

2010-02-22 5:49
And as MartyH says, middle-click works for me in all three browsers as well, but I don't usually do that because my notebook has no middle mouse button. ;-)

Reply by Andreas Hofmann

2010-02-22 5:57
Nope, opening tabs in the background is something I can't do. It's something you as the users have complete control over, probably as a protection from malicious scripts.

Moises, if you use Firefox, install the Tab Mix Plus extension, it has tons of settings regarding the handling of tabs. You can set new tabs created from links to open in the background automatically there (or invert left click and middle click on links, so left click opens in background and middle click in foreground).

Reply by mit

2010-02-22 6:02
Hi, Andreas. Your script works amazingly fine with Firefox. Thanks!!

Reply by moises

2010-02-22 18:39
Andreas,

Got it! I use Firefox and I see that holding CTRL accomplishes just what I want. Thanks.

Reply by vegheadjones

2010-02-22 21:21
Andreas I am loving the userscript-- I just wish I could test out the "highlight Mark's posts" functionality. :)

Reply by Andreas Hofmann

2010-02-22 21:45
vegheadjones:

Well, it does highlight all of Mark's posts, not only the new ones. For example: http://www.markforster.net/forum/post/1006802

Reply by vegheadjones

2010-02-22 21:53
I only want to test it on Mark's new posts... :) :)

Reply by Andreas Hofmann

2010-02-22 22:00
Okay, okay, I catch your drift. ;-)

Reply by kneitinga

2010-02-23 5:04
Thany you Andreas for your effort and time you put into the script.
It is so much easier and faster and fun to read the forum with it.

Reply by piggler

2010-02-24 19:45
Andreas,

Does your script work with internet explorer? It just produces errors when i try to run it!

Reply by Andreas Hofmann

2010-02-24 20:36
piggler:

No, it doesn't work in Internet Explorer. There are two reasons for this:

1. Internet Explorer doesn't support userscripts.

There exist several attempts to rectify this with external applications (Greasemonkey for IE, Trixie, Turnabout and IE7pro), but even then my script will (for now) still fail.

2. Internet Explorer doesn't support JavaScript.

Sound strange, but it's true. While all other browsers support JavaScript (and are therefore capable of running this script, which I wrote in JavaScript), what IE has isn't JavaScript, but Microsoft JScript. JavaScript and JScript are very similar, but Microsoft often has its own way of doing things, so my script won't work with JScript. The only thing that works currently is the menu.

It's possible to change the script to work with IE or even detect whether it's run in IE or a standards-compliant browser and work in both. I'll eventually do it, but currently I'm concentrating on AutofocusAHK. If anyone want's to take a shot at it in the mean time, feel free.

Reply by Qeran

2010-03-3 22:58
I appreciate the userscript very much. (Foxfire worked best.)
I can easily read just the newer posts and waste less time figuring out where I left off the last time I visited the forum.

You save me time.

Qeran

Reply by khad

2010-03-12 6:18
Me like.

Reply by sabre23t

2010-11-2 15:49
I just upgraded my notebook, and installed a new copy of FireFox. After installing Greasemonkey I came looking for this Userscript by Andreas. Unfortunately that http://andreashofmann.net/userscripts/markforster.net/ gets redirected to http://andreashofmann.info/userscripts/markforster.net/ and gives 404 error at the moment.

Help, please. ;-)

Reply by Alan Baljeu

2010-11-2 16:58
try the email address at http://andreashofmann.info
.

Reply by MartyH

2010-11-3 2:46
I uploaded it to the Yahoo group if that helps any.

http://finance.groups.yahoo.com/group/AutoFocusTM/files/

Reply by sabre23t

2010-11-3 4:16
MartyH,
TQ. I saw email notification from AutoFocusTM group of your file upload, and have installed that.

Alan,
I also emailed Andreas copied MartyH on the same. ;-)

Reply by Andreas Hofmann

2010-11-3 11:22
Hi everyone, the homepage of the userscript apparently didn't survive a server move. I have restored it now. If anything doesn't work, let me know.

Reply by sabre23t

2010-11-3 15:47
Andreas,
Thanks. I've just installed your latest version of "markforster.net improvement" user script. This version has the bonus "Norman" or "Best Sense" features. Can't see that feature in action though, since Norman is no longer active here.

Reply by sabre23t

2011-08-20 0:52
Just thought of bumping this very useful userscript for reading MF's forum, for MF readers who might have missed it.

Especially now that MF is posting quite often, it is nice to see his "green" background replies amongst the "yellow" new posts. ;-)

Reply by sabre23t

2018-11-19 8:19
http://andreashofmann.net/userscripts/markforster.net/ gets redirected to ... https://andreasmaurer.net/userscripts/markforster.net/ that now gives a 404 error.

http://andreashofmann.info/userscripts/markforster.net/ did not resolve.

Only found this copy on Github. Putting a place holder for it here, for now ...
https://github.com/andreashofmann/markforster.net-improvement-userscript

Reply by Andreas Maurer

2018-11-21 7:08
Wow, this is a blast from the past!

The script doesn't seem to work anymore, I'll make some adjustments and post a new url here some time this week. Probably today, since I got a feeling this task will stand out to me. :0)

Reply by Chris Cooper

2018-11-21 10:40
Creating and maintaining this script is obviously a great public service, though I don't think I'll be using it myself.

But I'm intrigued by sabre23t's remark:

>
This version has the bonus "Norman" or "Best Sense" features. Can't see that feature in action though, since Norman is no longer active here.
>

Did this mean Norman U, of fond memory? Did the script have some sort of defensive measure or early warning against him?

And what about "Best Sense"? Was that a person, or did the script magically sort the smart wheat from the dumb chaff in the posts - using advanced AI, presumably?

If so, I'd better make the effort and install the script.

Reply by Andreas Maurer

2018-11-21 12:13
Chris Cooper:

"Best Sense" was simply the label of a group of three options concerning Norman: Highlighting Norman's posts, Hiding all posts except those by Norman, and Blacking out Norman's posts.

I don't remember how that came about.

Reply by Andreas Maurer

2018-11-21 14:32
I fixed a lot of the problems and hosted the script here: https://github.com/andreasmaurer/markforster.net-improvements-userscript

I got most options working, just the core functionality of highlighting new topics and posts is still broken. Better uncheck it for now. I also think the "Compact Posts" can under "Sidebar" can be removed, the sidebar has changed since back then.

Reply by Andreas Maurer

2018-11-21 14:34
The code of the script hasn't exactly aged well, so I'm inclined to completely re-write it, but that is a more time-consuming endeavor. I will create a now forum thread when I start implementing it.

Reply by Andreas Maurer

2018-11-21 15:14
I think I fixed the highlighting of new posts. At least it is not throwing any errors any more. I'll have to wait for new topics/posts to check.

Reply by Andreas Maurer

2018-11-21 15:26
Even if it does work, the script was written in a time when there was only one forum, so it will get really confused if you switch between the two forums.

Reply by Chris Cooper

2018-11-23 1:00
No wonder Norman flounced out!

I was sorry to see him go.

Reply by Andreas Maurer

2018-11-23 2:24
Not at all. I haven't been able to find the thread to determine the origin of the phrase "Best Sense", but I added those features at Norman's request and he thought it was very funny.

Reply by Andreas Maurer

2018-11-29 10:07
Since the suggestion that this script contributed to Norman leaving was gnawing at me, I did some digging and found the original source:

(You'll have to remove the spaces from all of those urls, since the captcha will not let me post if this text contains real urls.)

http://markforster.squarespace.com/forum/post/1027108#post1028400 - Here Norman requests having his posts highlighted, and also coins the term "best sense".

http://markforster.squarespace.com/forum/post/1027108#post1029140 - Here Norman requests the feature to remove all posts except his own.

http://markforster.squarespace.com/forum/post/1027108#post1029157 - vegheadjones suggests blacking out Norman's posts. While Norman's response could be interpreted as negative, it was all in good fun, confirmed by him referring to it as "Good stuff and shows what happens when people have a decent sense of humor." a few days later here: http://markforster.squarespace.com/forum/post/1053660#post1054318

[I've edited this to remove the spaces - MF]

Reply by Chris Cooper

2018-11-29 10:40
Thanks, Andreas - I have some nostalgic reading ahead of me.

I either missed this at the time, or completely forgot it since.

Reply by Mark Forster

2018-11-29 11:20
Andreas:

I don't think Norman's departure was anything to do with you. My memory is that he got targeted by one regular poster on the group (who we will call M). M took exception to some of the things Norman wrote and started to investigate his postings on other groups. M wrote an "exposé" of Norman under a pseudonym. M himself later got into an argument with other members of the group and left to set up his own group. That didn't last long.

P.S. I think I removed most of the threads in which this drama took place.

P.P.S I'm now wondering whether "Norman" wasn't actually M's creation in the first place and he was playing both roles.

Reply by Andreas Maurer

2018-11-29 12:20
There definitely was a lot of drama here back then. I found multiple occasions where members announced they were leaving the forums around that time, some did.

Reply by Andreas Maurer

2018-11-29 12:26
Mark:

Your P.P.S just made me laugh, since I stumbled upon the suggestion that you and Norman were actually the same person in this old drama thread: http://markforster.squarespace.com/forum/post/1053295165f.html#post1055972

Reply by Andreas Maurer

2018-11-29 14:55
I fixed the url in the first post of this topic so it redirects to the github repository of the currenct userscript.

I have also fixed the highlighting of new posts inside a topic, though it still doesn't work in a way I like. When you visit the index of the forum, it checks for new or updated topics and highlights those. After that it highlights all the posts inside of topics that are newer than the previous time the topics were checked. So it doesn't really un-highlight read posts until the next time new/updated topics are found.

The script has always worked that way, but I'd like to re-write it to actually track the state of each post. The technology improvements and my increased programming experience over the last few years should make it possible.

I will now let this old topic rest and open a new one for the new script once I get around to it.

Reply by Mark Forster

2018-11-29 16:15
Andreas:

<< I stumbled upon the suggestion that you and Norman were actually the same person in this old drama thread: http://markforster.squarespace.com/forum/post/1053295165f.html#post1055972 >>

I can't say I remember that!

The link doesn't work for me (even after removing the spaces).

Reply by Andreas Maurer

2018-11-29 17:00
My apologies, I somehow butchered that link while copying, pasting, and/or editing. The end should be: 1053295?currentPage=2#post1055972

It's an obvious joke buried in a hard to read sarcastic post, so you might have missed or ignored it.

Reply by Mark Forster

2018-11-29 18:23
Andreas:

Ah, yes. I remember it now.

Reply by sabre23t

2018-12-10 8:15
I've reinstalled the userscript from http://github.com/andreasmaurer/markforster.net-improvements-userscript a few days ago. And tried again just now. It doesn't seem to work on this general forum for me. I may have forgotten some things though.

Reply by Andreas Maurer

2018-12-10 13:35
sabre32t:

Well, your post is marked yellow for me. Which extension are you using to run the script, Tampermonkey or Greasemonkey? Does it show that the script is running when you're on this site? Is the configuration menu in the sidebar visible?

Reply by sabre23t

2018-12-11 4:02
Hi Andreas,
I'm using Tampermonkey 4.7.44. And version 2.0.4 of your userscript. It doesn't seem to work. No yellow highlight for new posts. No configuration menu in the sidebar. May be my old userscript settings configurations gets corrupted or something.
Screenshots here ... Album Link: https://photos.app.goo.gl/rfjr9mfj8ce5o8RL9

Reply by sabre23t

2018-12-11 4:20
Oops ... I'm so embarrassed. I forgot to enable Tampermonkey (the icon is greyed). I've enabled it and the script runs. Added screenshots to that http://photos.app.goo.gl/rfjr9mfj8ce5o8RL9

Reply by Andreas Maurer

2018-12-11 10:15
sabre32t:

Glad you got it working. The highlighting is far from perfect, and doesn't work with the fvp forum, but it's better than nothing. I find the flow that works best for me is opening the forum index, and then open all highlighted topics in new tabs.

Reply by Nicole

2019-01-21 14:30
Am I the only for whom the url markforster.net isn't working anymore? I used to use that, but now I can only come here through markforster.squarespace.com. Still OK, but just wondering what happened.

BTW, the captcha doesn't work anymore also, I had to login to be able to post.

Reply by Andreas Maurer

2019-01-22 6:50
Nicole:

Yes, there used to be a reverse proxy functionality which allowed the browser to stay on markforster . net while serving the content from squarespace. This stopped working, I think a few years ago already, and now it's a simple redirect from markforster . net to markforster . squarespace . com.

The captcha is using an old version of the api, which has been turned off. There were warnings about it popping up some months ago.

Both problems probably stem from this site using a very old version of squarespacce, which doesn't receive updates anymore and isn't really supported. Mark has stated at the moment he has no intention of investing the time and money to update this site to a newer version.